package com.mvc.controller;


import com.common.core.BaseController;
import com.jfinal.kit.JsonKit;
import com.mvc.model.Tribute;
import com.mvc.request.ReqTributePage;
import com.mvc.request.ReqVenueTribute;
import com.mvc.request.ReturnData;
import com.mvc.response.RspPage;
import com.mvc.service.TributeService;
import com.mvc.service.impl.TributeServiceImpl;
/***
 * 贡品
 * 
 * @author Administrator
 *
 */
public class TributeController extends BaseController {
	
	TributeService tributeService = new TributeServiceImpl();

	 //查询【贡品牌位】 列表
	public void queryTributePage()
	{
		ReqTributePage req =  getRequestObject(ReqTributePage.class);
		ReturnData<RspPage<Tribute>> data=tributeService.queryPage(req);
		renderJson(JsonKit.toJson(data));
	}
	 //根据场馆ID获取场馆收到的贡品
	public void queryVenueTributePage()
	{
		ReqVenueTribute req =  getRequestObject(ReqVenueTribute.class);
		ReturnData<RspPage<Tribute>> data=tributeService.queryVenuePage(req);
		renderJson(JsonKit.toJson(data));
	}

}